﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinFormsAppTest.pojo
{
    internal class Exam
    {
        private int examid;
        private string state;
        private string measure;
        private string goal;
        private int userid;

        public int Examid { get => examid; set => examid = value; }
        public string State { get => state; set => state = value; }
        public string Measure { get => measure; set => measure = value; }
        public string Goal { get => goal; set => goal = value; }
        public int Userid { get => userid; set => userid = value; }

        public Exam(int examid, string state, string measure, string goal, int userid)
        {
            this.examid = examid;
            this.state = state ?? throw new ArgumentNullException(nameof(state));
            this.measure = measure ?? throw new ArgumentNullException(nameof(measure));
            this.goal = goal ?? throw new ArgumentNullException(nameof(goal));
            this.userid = userid;
        }

        public Exam()
        {
        }
    }
}
